#include <iostream>
#include <map>
#include <string>

using namespace std;

int main(){
    map<int,string> m1;
    cout<<m1.max_size()<<endl;
    m1.insert(pair<int,string>(1,"Jim"));
    m1.insert(map<int,string>::value_type(2,"Tom"));
    m1[3]="Jerry";
    cout<<m1.size();
    map<int,string>::iterator ITER;
    ITER=m1.begin();
    while(ITER!=m1.end()){
        cout<<ITER->first<<' '<<ITER->second<<endl;
        ITER++;
    }
    map<int,string>::iterator tag;
    FIND:tag=m1.find(1);
    if(tag==m1.end()){
        cout<<"not found"<<endl;
    }else{
        cout<<"found, delete it"<<endl;
        m1.erase(tag);
        goto FIND;
    }
    cout<<m1.empty()<<endl;
    m1.clear();
    cout<<m1.empty()<<endl;
    return 0;
}
